var express = require('express');
var r = express.Router();
// 引入验证码模块
const svgCaptcha = require('svg-captcha');

/* GET users listing. */

r.get("/", (req, res) => {
    var captcha = svgCaptcha.create({
        size: 4,
        fontSize: 50,
        noise: 1,
        width: 120,
        heigth: 30,
        color: true,
        background: "#fff"
    })
    res.send(captcha);
});
// 导出验证码模块
module.exports = r;
